<template>
<div class="wrap">
  <div class="banner"></div>
  <div>公告</div>
  <div class="flex-wrap">
    <div class="flex-item">
      <image />
      <p>每日签到</p>
    </div>
  </div>
  <div class="ads">
    <img />
    <p>182****31231刮出了4枚e金币！</p>
  </div>

  <div class="">
    <p class="h2">商品推荐<p>
    <div class="list">
      <div class="item">
        <div>图片</div>
        <div>名称</div>
        <div>
          <span>剩余0件</span>
          <span>200人浏览</span>
        </div>
        <div>金币icon 16 + ¥5<del>¥0</del></div>
        <div>
          <span>收藏</span>
          <span>兑换</span>
        </div>
      </div>
    </div>
  </div>
</div>
</template>

<script>
import card from "@/components/card";

export default {
  data() {
    return {
      motto: "Hello miniprograme",

      userInfo: {
        nickName: "mpvue",
        avatarUrl: "http://mpvue.com/assets/logo.png"
      }
    };
  },

  components: {
    card
  },

  methods: {
    bindViewTap() {
      const url = "../logs/main";
      if (mpvuePlatform === "wx") {
        mpvue.switchTab({ url });
      } else {
        mpvue.navigateTo({ url });
      }
    },
    clickHandle(ev) {
      console.log("clickHandle:", ev);
      // throw {message: 'custom test'}
    }
  },

  created() {
    // let app = getApp()
  }
};
</script>

<style scoped>
</style>
